cfstring.htmlHTMLudog4“πùΔ¢πùΔ¢ÅÅÿ Monkeybread Realbasic plugin - Documentation - CFString

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class CFString

class, CoreFoundation So, 21. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: A class for a core foundation string.
Notes:
Subclass of CFObject.
If the release property is true, the destructor of this class will release the string reference.

Character(index as integer) as string

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Returns the character from this string with the given index.
Notes: The returned REALbasic string contains a Unicode character.

Characters(pos as integer,len as integer) as string

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Returns the characters from this string in the given range.
Notes: The returned REALbasic string contains Unicode characters.

Compare(other as CFString, CaseInsensitive as boolean) as integer

method, CoreFoundation So, 21. Jul 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Compares two strings.
Notes:
Return values:
Less Than-1
Equal To0
Greater Than1

DoubleValue as double

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> 0. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns the string interpreted as an double value.
Notes:
Compare to val.
Skips whitespace; returns 0.0 on error.

Edit as CFMutableString

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Returns a mutable string.

ExactFind(stringtofind as CFString) as integer

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Finds the given string.
Notes: Exactly, so case sensitive.

Find(stringtofind as CFString) as integer

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Finds the given string.

HasPrefix(s as CFString) as boolean

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> false. Mac OS Carbon: Works. Windows: -> false.
Function: Does this string start with s.

HasSuffix(s as CFString) as boolean

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> false. Mac OS Carbon: Works. Windows: -> false.
Function: Does this string end with s.

IntegerValue as integer

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> 0. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns the string interpreted as an integer value.
Notes:
Compare to val.
Skips whitespace; returns 0 on error, MAX or -MAX on overflow.

Len as integer

property, CoreFoundation So, 21. Jul 2002
Mac OS Classic: -> 0. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns the length in chars of the string.

Mid(pos as integer,len as integer) as CFString

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Returns a new CFString with a substring from the current CFString.
Notes: Compare to Mid in RB.

Str as String

method, CoreFoundation So, 21. Jul 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Returns the string data as Realbasic string.
Notes: If the string can be returned converted to System Script (e.g. MacRoman), it is returned in System Script, else as unicode string.

UStr as String

method, CoreFoundation So, 21. Jul 2002
Mac OS Classic: -> nil. Mac OS Carbon: Works. Windows: -> nil.
Function: Returns the string data as Realbasic unicode string.
Notes: If the string can not be returned as an unicode string, this function returns it as a normal string in System script (e.g. MacRoman).

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ